package 装饰者模式.组装发票;

/**
 *
 */
public class Business {

    public static void main(String[] args) {

        Invoice t = new Invoice();
        Invoice ticket;
        ticket = new HeadDecorator(new FootDecorator(t));
        ticket.printInvoice();
        System.out.println("----------");

        ticket = new FootDecorator(new HeadDecorator(t));
        ticket.printInvoice();

    }

}
